package com.atguigu.gmall.sms.api;

import com.atguigu.gmall.common.bean.ResponseVo;
import com.atguigu.gmall.sms.dto.SkuSalesDto;
import com.atguigu.gmall.sms.vo.ItemSaleVo;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

public interface SmsApi {
    @ApiOperation("根据skuId查询它的营销信息")
    @GetMapping("sms/skuladder/querySalesBySkuId/{skuId}")
    public ResponseVo<List<ItemSaleVo>> querySalesBySkuId(@PathVariable("skuId")String skuId);
    //pms服务远程保存sku营销数据
    @PostMapping("sms/skuladder/saveSkuSales")
    public ResponseVo saveSkuSales(@RequestBody SkuSalesDto skuSalesDto);
}
